




























































<html>
<head>
<title>Login page for STB</title>
                      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>

    <script language="javascript">

/* Mod by l00128386 B350 EaagdF020 ���ⵥ�ţ�AK7D02815 at <Nov 27, 2008> begin */

/* java������js ����ת��*/
var isSucessed = true;
var isWriteBox = true;
var needWriteTSP = true;
function AuthFinish()
{
  /* ��֤�ɹ���д�� */
  var tempKey = "";


  /* Mod by l00128386 B350 EaagdF020 ���ⵥ�ţ�AK7D02803 at <Nov 27, 2008> begin */
  /* Mod by l00128386 B350 EaagdF020 at <Nov 27, 2008> begin */
  if(isSucessed)
  /* Mod by l00128386 B350 EaagdF020 at <Nov 27, 2008> end */
  {
    //at: US.V100R003C70.033.002.MEM.001
    if(false)
    {
      Utility.setValueByName('authStatus','{"status":"1","errorCode":"","errorType":"","errorName":"","errorDesc":"","errorResolve":""}');

      Utility.setValueByName('TVDesktopID','null');
      Utility.setValueByName('TVDesktopGetURL','null');
      // ���ܻ��������������Ҳ�·�UserToken�������޷���ȡ��������
      if (!isWriteBox)
      {
        Authentication.CTCSetConfig('UserToken','10DDC0C067367437317CD85A90327C31');
      }
    }

    Authentication.CTCSetConfig('IsPostLog','0');
    setStbParmList();

    //��SQARtcpPort�˿��·������� add by nkf36498 at 2011.04.1
    Authentication.CTCSetConfig('SQARtcpPort','8027');

    var XJYDLauncherEntrance = '1';
    if(true)
    {
      Authentication.CTCSetConfig('XJYD_Launcher_Entrance','1');
    }



    Authentication.CTCSetConfig('UserToken','10DDC0C067367437317CD85A90327C31');
    Authentication.CTCSetConfig('EPGDomain','http://10.255.238.76:33200/EPG/jsp/default01/en/Category.jsp');
    Authentication.CTCSetConfig('EPGDomainBackup','null');
    Authentication.CTCSetConfig('ManagementDomain','null');
    Authentication.CTCSetConfig('ManagementDomainBackup','null');
    Authentication.CTCSetConfig('UpgradeDomain','http://10.255.11.25:8082/UPGRADE/jsp/upgrade.jsp');
    Authentication.CTCSetConfig('UpgradeDomainBackup','null');
    Authentication.CTCSetConfig('NTPDomain','10.255.5.76');
    Authentication.CTCSetConfig('EPGGroupNMB','default01');


    Authentication.CTCSetConfig('UserGroupNMB','2');

    /* *** Add by h00112646 for AB4D07234 at 2008-10-11 begin *** */
    Authentication.CTCSetConfig('NTPDomainBackup','10.255.5.76');
    /* ����״̬��Щֵû��Ҫ���·���������*/
    if(isWriteBox)
    /* Mod by l00128386 B350 EaagdF020 ���ⵥ�ţ�AK7D02815 at <Nov 27, 2008> end*/
    {
      Authentication.CTCSetConfig('PackageIDs','-1');
      /* *** Add by h00112646 for AB4D07234 at 2008-10-11 end *** */
      if(false)
      {
        /* *** Add by z00128504 for AK7D02317 at 2008-11-14 begin *** */
        /* *** Add by z00128504 for IPTVCUSTOMPROBLEM-42  at 2010-10-21 begin *** */
        if(false)
        {
          Authentication.CTCSetConfig('NetUserID','null');
        }
        /* *** Add by z00128504 for IPTVCUSTOMPROBLEM-42  at 2010-10-21 end *** */
        /* *** Add by z00128504 for AK7D02317 at 2008-11-14 end *** */
      }

      //	Authentication.CTCSetConfig('shareKey','aAcCeEdDfD');
      /* Add by l00128386 B350 EaagdF020 at <Nov 27, 2008> begin */
      /* *** Add by h00112646 for AB4D07153 at 2008-9-25 begin *** */
      Authentication.CTCSetConfig('areaid','0851');
      /* *** Add by h00112646 for AB4D07153 at 2008-9-25 end *** */
      if(true)

      {
        Authentication.CTCSetConfig('templateName','default01');
      }

      /* Add by l00128386 B350 EaagdF020 at <Nov 27, 2008> end */
      switch(0)
      {
        case 1:
          Utility.setValueByName('DefaultUpgradeDownloadPolicy','{"forceInBackground":"false","noForceInBackground":"true"}');
          break;
        case 2:
          Utility.setValueByName('DefaultUpgradeDownloadPolicy','{"forceInBackground":"true","noForceInBackground":"false"}');
          break;
        case 3:
          Utility.setValueByName('DefaultUpgradeDownloadPolicy','{"forceInBackground":"true","noForceInBackground":"true"}');
          break;
      }
    }

    Authentication.CTCSetConfig('shareKey','aAcCeEdDfD');
    /* *** Add by h00112646 for AB4D07251 at 2008-10-12 begin *** */
    Authentication.CTCSetConfig('LogServerUrl','ftp://IP:port@username&Huawei#1');
    Authentication.CTCSetConfig('LogUploadInterval','3600');
    Authentication.CTCSetConfig('LogRecordInterval','3600');
    Authentication.CTCSetConfig('EPGUrl','http://10.255.238.76:33200/EPG/jsp/indexHWCTC.jsp');
    /* *** Add by h00112646 for AB4D07251 at 2008-10-12 end *** */

    /* *** Add by h00112646 for AB4D07239 at 2008-10-11 begin *** */
    //д�û���֤ͨ����־
    Authentication.CTCSetConfig('UserStatus','1');
    /* *** Add by h00112646 for AB4D07239 at 2008-10-11 end *** */

    if(needWriteTSP)
    {
      Authentication.CTCSetConfig('TransportProtocol','2');
    }

    Authentication.CTCSetConfig('MQMCURL','10.255.4.179');
    //��֤�ɹ���,�ǿյ�PPPoE��д�������.
    /* *** Mod by h00112646 for AB4D07340:ֻ�ܷ������д��,������ⵥ at 2008-10-29 begin *** */

    /** IPTV Solution R003C52 (�㶫C52������֤/STB)ԣ�˵�EC1308G����չʾtvms��Ϣ start .. **/
    /*****added by d43226 for [C05B500] 2009-11-04 begin****/
    var stbType= Authentication.CTCGetConfig("STBType");
    if(stbType == "PCCLIENT")
    {
      var UserID = "XMTHW047@iptv";
      var UserPwd = "";
      tosave(UserID,UserPwd);
    }
    else
    {
      setSTBConfig();
    }
    /** IPTV Solution R003C52 (�㶫C52������֤/STB)ԣ�˵�EC1308G����չʾtvms��Ϣ end .. **/

    Authentication.CTCSetConfig('SessionID','25F4579D461C359964EF0AD13D337FD0');
    /* *** Mod by h00112646 for AB4D07340 at 2008-10-29 end *** */

    tempKey = Authentication.CTCGetConfig('identityEncode');


  }

  var _nextURL = "getchannellistHWCTC.jsp?channellisttype=0&UserToken=10DDC0C067367437317CD85A90327C31";

  if(Authentication.CTCGetConfig("STBType") == "PCCLIENT")
  {
    _nextURL = "pcc_" + _nextURL;
  }
  /*****added by d43226 for [C05B500] 2009-11-04 end****/

  if(_nextURL.indexOf("?") > 0)
  {
    _nextURL = _nextURL + "&tempKey=" + tempKey;
  }
  else
  {
    _nextURL = _nextURL + "?tempKey=" + tempKey;
  }

  //�˴�����ж��������ɹ���ͬʱ�����֧�ֲ�Ʒ������ʾ
  if(isSucessed && false)
  {
    _nextURL = "ShowWarn4Product.jsp?NextURL=" + _nextURL;
  }

  //�˴�����ж��������ɹ���ͬʱ������¿��������ǿ�����Ч��Ҫ���ˣ�����������ʾҳ�棬���򲻽�
  if(isSucessed && false)
  {
    if(Authentication.CTCGetConfig("STBType") == "PCCLIENT")
    {
      _nextURL = "pcc_ShowCardUserStatus.jsp?NextURL=" + _nextURL;
    }
    else
    {
      _nextURL = "ShowCardUserStatus.jsp?NextURL=" + _nextURL;
    }
  }

  window.location.href = _nextURL;
  /* Mod by l00128386 B350 EaagdF020 ���ⵥ�ţ�AK7D02803 at <Nov 27, 2008> end*/
}


function setSTBConfig()
{
  Authentication.CTCSetConfig('UserID','XMTHW047@iptv');

  // CR20090608031 ���� z00128385 at 2009-06-16 begin
  Authentication.CTCSetConfig('TVMSHeartbitUrl','http://www.TVMSHeartbitUrl.com');
  Authentication.CTCSetConfig('TVMSVODHeartbitUrl','http://www.TVMSVODHeartbitUrl.com');
  Authentication.CTCSetConfig('TVMSHeartbitInterval','600');
  Authentication.CTCSetConfig('TVMSDelayLength','60');
  // CR20090608031 ���� z00128385 at 2009-06-16 end
  // l00136076 AK7D06415

  //�·���������
  var bootLogo = "http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=LOGO&PicTypeID=0&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1";
  var authenBack = "http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=AUTHEN&PicTypeID=1&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1";
  var bootLoad = "null";
  var anyBack = "http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=ANY&PicTypeID=3&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1";
  var bootLogo_old = Authentication.CTCGetConfig("PADBootLogPicURL");
  var authenBack_old = Authentication.CTCGetConfig("PADAuthenBackgroundPicURL");
  var anyBack_old = Authentication.CTCGetConfig("BootanimationURL");
  var bootLoad_old = Authentication.CTCGetConfig("PADLoaderLogoPicURL");
  var isSupportAD = "0";
  var isSupportLuTong = false;
  var stbType=Authentication.CTCGetConfig("STBType");
  /*mod by q00188198 for C57 US.IPTVV1R3C57.014.001.MEM.005 2011-11-04 begin*/
  //�Խӹ��ƽ̨ʱ
  if(1 == isSupportAD)
  {
    if(bootLogo != '' && bootLogo != 'null')
    {
      if (bootLogo != bootLogo_old)
      {
        Authentication.CTCSetConfig("PADBootLogPicURL", bootLogo);
      }
    }
    if (authenBack != '' && authenBack != 'null')
    {
      if (authenBack != authenBack_old)
      {
        Authentication.CTCSetConfig("PADAuthenBackgroundPicURL", authenBack);
      }
    }
  }
  // �Խ�·ͨ
  else if (isSupportLuTong)
  {
    if(bootLogo != '' && bootLogo != 'null' && -1 != bootLogo.lastIndexOf("/"))
    {
      //��ȡ��filename���бȽ�
      var bootLogo_filename = bootLogo.substring(bootLogo.lastIndexOf("/") + 1);
      var bootLogo_old_filename = bootLogo_old.substring(bootLogo_old.lastIndexOf("/") + 1);
      if (bootLogo_filename != bootLogo_old_filename)
      {
        Authentication.CTCSetConfig("PADBootLogPicURL", bootLogo);
      }
    }
    if (authenBack != '' && authenBack != 'null' && -1 != authenBack.lastIndexOf("/"))
    {
      //��ȡ��filename���бȽ�
      var authenBack_filename = authenBack.substring(authenBack.lastIndexOf("/") + 1);
      var authenBack_old_filename = authenBack_old.substring(authenBack_old.lastIndexOf("/") + 1);
      if (authenBack_filename != authenBack_old_filename)
      {
        Authentication.CTCSetConfig("PADAuthenBackgroundPicURL", authenBack);
      }
    }
    if (bootLoad != '' && bootLoad != 'null' && -1 != bootLoad.lastIndexOf("/"))
    {
      //��ȡ��filename���бȽ�
      var bootLoad_filename =bootLoad.substring(bootLoad.lastIndexOf("/") + 1);
      var bootLoad_old_filename = bootLoad_old.substring(bootLoad_old.lastIndexOf("/") + 1);
      if (bootLoad_filename != bootLoad_old_filename)
      {
        Authentication.CTCSetConfig("PADLoaderLogoPicURL", bootLoad);
      }
    }
  }
  //���Ի�������������
  else
  {

    var sJson= Authentication.CTCGetConfig('commonInfo, {"type":"bootPic"}');
    if (sJson.downLoadURL != "http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=bootPic&PicTypeID=5&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1")
    {
      Authentication.CTCSetConfig('commonInfo','{"type":"bootPic","downLoadURL":"http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=bootPic&PicTypeID=5&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1","infoDesc":""}');
    }

    var sJson= Authentication.CTCGetConfig('commonInfo, {"type":"fastPlay"}');
    if (sJson.downLoadURL != "http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=fastPlay&PicTypeID=6&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1")
    {
      Authentication.CTCSetConfig('commonInfo','{"type":"fastPlay","downLoadURL":"http://10.255.11.25:8082/EDS/jsp/loadBootpic.jsp?STBType=MR820-LK&areaid=9999&PicType=fastPlay&PicTypeID=6&userId=XMTHW047@iptv&userGroupId=2&isIndiv=1&isNewMatchPolicy=1","infoDesc":""}');
    }


    if(bootLogo != '' && bootLogo != 'null')
    {

      if(-1 == bootLogo.indexOf("FILENAME="))
      {
        //�������FILENAME�ֶ�˵��EPGû��ƥ�䵽���ԣ���ʱ�ٷ�������UPG���ٽ���ƥ��
        Authentication.CTCSetConfig("PADBootLogPicURL", bootLogo);
      }
      else
      {
        //��ȡ��filename���бȽ�
        var bootLogo_filename = bootLogo.substring(bootLogo.indexOf("FILENAME=")+"FILENAME=".length, bootLogo.indexOf("&userId="));
        var bootLogo_old_filename = bootLogo_old.substring(bootLogo_old.indexOf("FILENAME=")+"FILENAME=".length, bootLogo_old.indexOf("&userId="));
        if (bootLogo_filename != bootLogo_old_filename)
        {
          Authentication.CTCSetConfig("PADBootLogPicURL", bootLogo);
        }
      }
    }
    if (authenBack != '' && authenBack != 'null')
    {


      if(-1==authenBack.indexOf("FILENAME="))
      {
        Authentication.CTCSetConfig("PADAuthenBackgroundPicURL", authenBack);
      }
      else
      {
        //��ȡ��filename���бȽ�
        var authenBack_filename =authenBack.substring(authenBack.indexOf("FILENAME=")+"FILENAME=".length, authenBack.indexOf("&userId="));
        var authenBack_old_filename = authenBack_old.substring(authenBack_old.indexOf("FILENAME=")+"FILENAME=".length, authenBack_old.indexOf("&userId="));
        if (authenBack_filename != authenBack_old_filename)
        {
          Authentication.CTCSetConfig("PADAuthenBackgroundPicURL", authenBack);
        }
      }
    }
    if (bootLoad != '' && bootLoad != 'null')
    {


      if(-1==bootLoad.indexOf("FILENAME="))
      {
        Authentication.CTCSetConfig("PADLoaderLogoPicURL", bootLoad);
      }
      else
      {
        //��ȡ��filename���бȽ�
        var bootLoad_filename =bootLoad.substring(bootLoad.indexOf("FILENAME=")+"FILENAME=".length, bootLoad.indexOf("&userId="));
        var bootLoad_old_filename = bootLoad_old.substring(bootLoad_old.indexOf("FILENAME=")+"FILENAME=".length, bootLoad_old.indexOf("&userId="));
        if (bootLoad_filename != bootLoad_old_filename)
        {
          Authentication.CTCSetConfig("PADLoaderLogoPicURL", bootLoad);
        }
      }
    }
    if (anyBack != '' && anyBack != 'null')
    {


      if(-1==anyBack.indexOf("FILENAME="))
      {
        Authentication.CTCSetConfig("BootanimationURL", anyBack);
      }
      else
      {
        //��ȡ��filename���бȽ�
        var anyBack_filename =anyBack.substring(anyBack.indexOf("FILENAME=")+"FILENAME=".length, anyBack.indexOf("&Action=NotSend"));
        var anyBack_old_filename = anyBack_old.substring(anyBack_old.indexOf("FILENAME=")+"FILENAME=".length, anyBack.indexOf("&Action=NotSend"));
        if (anyBack_filename != anyBack_old_filename)
        {
          Authentication.CTCSetConfig("BootanimationURL", anyBack);
        }
      }
    }
  }
  /*mod by q00188198 for C57 US.IPTVV1R3C57.014.001.MEM.005 2011-11-04 end*/
  Authentication.CTCSetConfig("ResServerUrl", "http://10.255.11.25:8082/UPGRADE/jsp/upgrade.jsp" + "/EDS/jsp/loadBootpic.jsp");

  Authentication.CTCStartUpdate();
}
function setStbParmList()
{

}
</script>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
bgcolor="transparent" onload=AuthFinish()>
    <form action="getchannellistHWCTC.jsp?channellisttype=0&UserToken=10DDC0C067367437317CD85A90327C31" name="authform" method="post">
    <table width="640" height="340" border="0">
    <tr>
    <td width="640" height="300"></td>
    </tr>
    <tr>
    </tr>
    </table>
    <input type="hidden" name="conntype"
value="dhcp"></form>
    </body>
    </html>
